<?php
/**
 * @file $HeadURL: keyword.php $
 * @author $Author: Jim.chou (zhouzhe@haibao.com) $
 * @date $Date: 2015-3-28 15:19:18 $
 * @brief 
 */
namespace haibao\cms\data;


class Link extends \haibao\cms\data\BaseMysql{
	
	public function __construct(){
		parent::__construct('\haibao\cms\model\data\link');
	}
	
	public function addLinkOne($model){
		$this->add($model);
	}
	
	public function getModelById($linkId){
		return $this->getOneById($linkId);
	}
	
	public function getLinkList($linkFilter){
		return parent::getAll($linkFilter);
	}
	
	public function delLink($id,$status){
		$this->updateById($id, array("Status"=>$status));
	}
	
}